﻿using System;
using System.Collections.Generic;

namespace Softelligent.Zintra.Synchronizations.ProductsAccessConsole.Entities
{
    public class Product
    {
        public Product()
        {
            Categories = new List<ProductCategory>();
        }

        public string Id
        {
            get
            {
                return Identifier.ToString();
            }
            set
            {
                int id;
                if (int.TryParse(value, out id))
                {
                    Identifier = id;
                }
            }
        }

        public int Identifier { get; set; }

        public bool IsArchived { get; set; }
        public bool IsHidden { get; set; }
        public bool IsDeleted { get; set; }
        public bool IsFeatured { get; set; }
        public string Name { get; set; }
        public string Description { get; set; }
        public string Summary { get; set; }
        public string Reference { get; set; }
        public string Manufacturer { get; set; }
        public string SEOName { get; set; }
        public DateTime CreatedDate { get; set; }
        public IList<ProductCategory> Categories { get; set; }
    }
}
